﻿using Microsoft.EntityFrameworkCore;
using _537AppStore_API.Model;
namespace _537AppStore_API.Data
{
    public class AppDbContext : DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
        {
            Database.EnsureCreated();
        }
        public DbSet<Model.Application> Application { get; set; }
        public DbSet<Model.Command> Command { get; set; }
        public DbSet<Model.Website> websites { get; set; }
    }
}
